{include admin.inc.header}

{include admin.inc.top}

<div class="container-fluid content-body">
    <div class="main">
        {include admin.inc.menu}

        <section class="right-section" id="right-section">
            <!-- start of inner-frame -->
            <div class="inner-iframe">

                <ul class="breadcrumb">
                    <li>
                        <i class="glyphicon glyphicon-home"></i>
                        <span>当前位置：</span>
                        <a href="#">{$breadcrumb[0]}</a>
                        <i class="glyphicon glyphicon-chevron-right"></i>
                        <a href="#">{$breadcrumb[1]}</a>
                    </li>
                </ul>

                <!-- Nav tabs -->
                <ul class="nav nav-tabs">

                    <li class="active"><a href="{$index_url}"><i class="glyphicon glyphicon-th-list"></i> 终端会员列表</a></li>
                </ul>

                <div class="inner-container">

                    <!-- search form start -->
                    <form class="form-inline form-search" role="form" id="search-form" autocomplete="off">
                        <div class="form-group">
                            <div class="input-group">
                                <div class="input-group-btn">
                                    <select class="form-control input-sm search-options" name="select_name">
                                        <option value="username" {if $params[select_name]=='username'}selected{/if}>手机号码</option>
                                        <option value="company" {if $params[select_name]=='company'}selected{/if}>实名认证</option>
                                    </select>
                                </div><!-- /btn-group -->
                                <input  type="text" name="username" value="{$params[$params['select_name']]}" class="form-control input-sm">
                            </div>
                        </div>
                        <div class="form-group" id="s_app_id">
                            <div class="input-group">
                                <div class="input-group-addon">租户标识</div>
                                <select class="form-control input-sm" name="app_id">
                                    <option value="">全部</option>
                                    {loop $mpes $val}
                                    <option value="{$val[id]}" {if $params[app_id]==$val[id]}selected{/if}>{$val[company]}</option>
                                    {/loop}
                                </select>
                            </div>
                        </div>

                        <div class="form-group" id="s_addtime">
                            <div class="input-group">
                                <div class="input-group-addon">注册时间</div>
                                <div class="form-inline">
                                    <input type="text" name="starttime" value="{$params[starttime]}" class="form-control input-sm mdate" placeholder="开始日期">
                                    <input type="text" name="endtime" value="{$params[endtime]}" class="form-control input-sm mdate" placeholder="结束日期">
                                </div>
                            </div>
                        </div>

                        <button type="submit" class="btn btn-success btn-sm">
                            <i class="glyphicon glyphicon-search"></i> 搜索</button>
                        {data_export_btn}

                    </form><!-- END search form -->

                    <form id="J_List_Form" autocomplete="off">
                        <div class="table-responsive" style="overflow-x: visible;">
                            <table class="table table-bordered table-hover" id="J_List_Table">
                                <thead>
                                <tr>
                                    <th width="20"><input type="checkbox" class="icheck check-all" /></th>
                                    {loop $tableHeader $val}
                                    <th>{$val}</th>
                                    {/loop}
                                </tr>
                                </thead>
                                <tbody>
                                {if empty($items)}
                                <tr>
                                    <td class="no-records text-center">{$noRecords}</td>
                                </tr>
                                {/if}
                                {loop $items $value}
                                <tr>
                                    <td><input type="checkbox" class="icheck" name="ids[]" id="checkbox_row_{$value[id]}" /></td>
                                    <td><label for="checkbox_row_{$value[id]}">{$value[company]}</label></td>
                                    <td>{$value[username]}</td>
                                    <td>
                                        {if $value[ischecked]==1}
                                        {$value[real_name]}
                                        {else}
                                        <span class="label label-default">未认证</span>
                                        {/if}
                                    </td>
                                    <td>{$value[addtime]}</td>
                                </tr>
                                {/loop}
                                </tbody>
                            </table>
                        </div>
                    </form>

                    <div class="text-right">
                        {$pagemenu}
                    </div>

                </div>

            </div><!-- end of inner -->
        </section>

    </div>
</div>

{include admin.inc.footer}

<script>
    seajs.use("member", function(exports) {
        exports.init();
    });

</script>
</body>
</html>
